<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0,user-scalable=0">
    <meta content="origin-when-cross-origin" name="referrer">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title>GH-H5-VUE-TEMPLATE</title>
    <script>
      /**
       *页面自适应代码，px转rem 请不要随意更改
       */

      ( function () {
        function resize () {
          var ww = window.innerWidth
          if ( ww > window.screen.width ) {
            window.requestAnimationFrame ( resize )
          } else {
            document.documentElement.style.fontSize = ww * 100 / 750 + 'px'
          }
        }

        resize ();
        window.addEventListener ( 'resize' , resize );
        window.addEventListener ( 'pageshow' , function ( e ) {
          if ( e.presisted ) {
            resize ();
          }
        } );
        if ( typeof WeixinJSBridge == "object" && typeof WeixinJSBridge.invoke == "function" ) {
          handleFontSize ();
        } else {
          if ( document.addEventListener ) {
            document.addEventListener ( "WeixinJSBridgeReady" , handleFontSize , false );
          } else if ( document.attachEvent ) {
            //IE浏览器，非W3C规范
            document.attachEvent ( "onWeixinJSBridgeReady" , handleFontSize );
          }
        }

        function handleFontSize () {
          // 设置网页字体为默认大小
          WeixinJSBridge.invoke ( 'setFontSizeCallback' , { 'fontSize' : 0 } );
          // 重写设置网页字体大小的事件
          WeixinJSBridge.on ( 'menu:setfont' , function () {
            WeixinJSBridge.invoke ( 'setFontSizeCallback' , { 'fontSize' : 0 } );
          } );
        }
      } ) ();
    </script>
    <script>
      ( function ( window , document ) {
        //新版app交互js
        document.getElementById ( 'app_v2' ) && document.getElementById ( 'app_v2' ).remove ()
        var hm = document.createElement ( 'script' )
        hm.src = 'https://cdn1.huaruisales.com/mobsite/lib/h5_app/EWebBridge.js'
        hm.id = 'app_v2'
        var s = document.getElementsByTagName ( 'script' )[ 0 ]
        let ua = navigator.userAgent.toLowerCase ()
        console.log ( navigator.userAgent )
        if ( ua.indexOf ( 'ghapp_ios_v2' ) != -1 ) {
          s.parentNode.insertBefore ( hm , s )
        } else if ( ua.indexOf ( 'ghapp_android_v2' ) != -1 ) {
          s.parentNode.insertBefore ( hm , s )
        }
      } ) ( window , document )
    </script>
    <script>
      ( function ( window , document ) {
        //企业微信js-sdk
        document.getElementById ( 'wxwork' ) && document.getElementById ( 'wxwork' ).remove ()
        var hm = document.createElement ( 'script' )
        hm.src = 'http://res.wx.qq.com/open/js/jweixin-1.2.0.js'
        hm.id = 'wxwork'
        var s = document.getElementsByTagName ( 'script' )[ 0 ]
        let ua = navigator.userAgent.toLowerCase ()
        console.log ( navigator.userAgent )
        if ( ua.indexOf ( 'micromessenger' ) != -1 && ua.indexOf ( 'wxwork' ) != -1 ) {
          s.parentNode.insertBefore ( hm , s )
        }
      } ) ( window , document )
    </script>
    <script>
      ( function ( window , document ) {
        //招商银行js
        document.getElementById ( 'cmb' ) && document.getElementById ( 'cmb' ).remove ()
        var hm = document.createElement ( 'script' )
        hm.src = 'https://cdn1.huaruisales.com/mobsite/lib/cmb/cmblapi.min.js'
        hm.id = 'cmb'
        var s = document.getElementsByTagName ( 'script' )[ 0 ]
        let ua = navigator.userAgent.toLowerCase ()
        console.log ( navigator.userAgent )
        if ( ua.indexOf ( 'micromessenger' ) != -1 && ua.indexOf ( 'cmb' ) != -1 ) {
          s.parentNode.insertBefore ( hm , s )
        }
      } ) ( window , document )
    </script>
    <!-- 通用外部js包 一般情况无需更改 -->
    <script
            src="https://cdn1.huaruisales.com/mobsite/lib/vue/vue/vue<%= process.env.NODE_ENV === 'production' ? '.min.js' : '.js' %>"
            crossorigin="anonymous"></script>
    <script
            src="https://cdn1.huaruisales.com/mobsite/lib/vue/vue-router/vue-router<%= process.env.NODE_ENV === 'production' ? '.min.js' : '.js' %>"
            crossorigin="anonymous"></script>
    <script
            src="https://cdn1.huaruisales.com/mobsite/lib/vue/vuex/vuex<%= process.env.NODE_ENV === 'production' ? '.min.js' : '.js' %>"
            crossorigin="anonymous"></script>
    <script
            src="https://cdn1.huaruisales.com/mobsite/lib/vue/axios/axios<%= process.env.NODE_ENV === 'production' ? '.min.js' : '.js' %>"
            crossorigin="anonymous"></script>
    <!-- 通用外部js包 -->
    <!-- 此99click js为华瑞系统专用，其他系统如需使用99click统计请使用相应系统的 -->
    <script src="https://cdn1.huaruisales.com/mobsite/lib/99click/o_code_zonghe.js" crossorigin="anonymous"
            async></script>
    <!--适用于主要访问来自中国大陆地区用户的业务场景-->
    <script type="text/javascript" charset="utf-8" src="//g.alicdn.com/sd/nch5/index.js?t=2015052012"></script>
    <!-- <script src="https://cdn1.huaruisales.com/ghss/onepassh5.js" type="text/javascript" charset="utf-8"></script> -->
</head>

<body>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>

</html>
